<?php

//var_dump(dirname(__FILE__));

ini_set('display_errors', 1);

define('APPLICATION_PATH',  realpath(dirname(__FILE__) . '/application')); 
define('APPLICATION_ENV','production'); 

set_include_path(APPLICATION_PATH . '/../library');
 
require_once 'Zend/Application.php' ;

$application = new Zend_Application( 
    APPLICATION_ENV, 
    APPLICATION_PATH . '/configs/application.ini' 
); 


$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);

		
$baseUrl = $config->baseHttp;
$basePath = $config->basePath;

define('_BASE_URL', $baseUrl);
define('_BASE_PATH_', $basePath);

define('_recordOnPage', $config->recordOnPage);
define('_pageRange', $config->pageRange);

$application->bootstrap()->run();

?>